package com.idheima.doy03_danli;

public class lazy {
    //私有化构造器

    private lazy() {
    }

    //定义一个类变量
    private static lazy lan;

    //创建一个类方法
    public static lazy getLan() {
        if (lan == null) {
            lan = new lazy();
        }
        return lan;
    }
}
